<template>
  <div class="content">
    <li class="jxz_list" v-for="item in jxzList" :key="item.id">
      <div class="up">
        <div class="jxz_left">
          <div class="i"></div>
          <div class="jxz_info">
            <div class="jxz_name">{{item.name}}</div>
            <div class="jxz_id">任务ID：{{item.rId}}</div>
            <div class="jxz_num">任务数量：<span>{{item.num}}</span>/{{item.num_total}}</div>
          </div>
        </div>
        <div class="jxz_right">
          <div class="jxz_price">{{item.price}}</div>
          <div class="jxz_label">{{item.state}}</div>
        </div>
      </div>
      <div class="down">
        <div class="label_list">
          <div class="label">暂停任务</div>
          <div class="label">置顶任务</div>
          <div class="label">追加任务</div>
          <div class="label">推荐展位</div>
        </div>
      </div>
    </li>
  </div>
</template>

<script>
export default {
    name:'jxz',
    data(){
      return{
        jxzList:[
          {
            id:1,
            name:'替我充值话费',
            rId:20210101,
            num:3,
            num_total:10,
            img:'',
            price:200,
            state:'进行中'
          },
          {
            id:2,
            name:'帮我取快递',
            rId:20210102,
            num:3,
            num_total:20,
            img:'',
            price:400,
            state:'进行中'
          },
          {
            id:3,
            name:'帮我买菜',
            rId:20210103,
            num:4,
            num_total:20,
            img:'',
            price:700,
            state:'进行中'
          },
          {
            id:4,
            name:'打扫卫生',
            rId:20210104,
            num:1,
            num_total:20,
            img:'',
            price:1000,
            state:'进行中'
          },
        ]
      }
    }
}
</script>

<style lang="scss" scoped>
.content{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jxz_list{
  list-style: none;
  width: 349px;
  height: 148px;
  background: #FFFFFF;
  box-shadow: 0px 2px 4px rgba(149, 149, 149, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  .up{
    height: 71px;
    width: 319px;
    border-bottom: 1px solid #F1F2F5;
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    .jxz_left{
      display: flex;
      align-items: center;
      .i{
        width: 56px;
        height: 56px;
      }
      .jxz_info{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        // align-items: center;
        .jxz_name{
          font-family: PingFang SC;
          font-style: normal;
          font-weight: normal;
          font-size: 15px;
          color: #333333;
        }
        .jxz_id{
          font-family: PingFang SC;
          font-style: normal;
          font-weight: normal;
          font-size: 13px;
          color: #BBC4CB;
        }
        .jxz_num{
          font-family: PingFang SC;
          font-style: normal;
          font-weight: normal;
          font-size: 13px;
          // text-align: center;
          color: #BBC4CB;
          span{
            color: #FE2552;
          }
        }
      }
    }
    .jxz_right{
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-end;
      .jxz_price{
        font-family: PingFang SC;
        font-style: normal;
        font-weight: normal;
        font-size: 13px;
        color: #FE2552;
      }
      .jxz_label{
        font-family: PingFang SC;
        font-style: normal;
        font-weight: normal;
        font-size: 13px;
        color: #FE2552;
      }
    }
  }
  .down{
    width: 330px;
    height: 52px;
    .label_list{
      height: 100%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .label{
      width: 74px;
      height: 26px;
      border: 1px solid #0080FF;
      // box-sizing: border-box;
      border-radius: 400px;
      font-family: PingFang SC;
      font-style: normal;
      font-weight: normal;
      font-size: 13px;
      line-height: 26px;
      vertical-align: middle;
      color: #0080FF;
      text-align: center;
    }
  }
}
</style>